﻿<%@ Page Title="" Language="C#" MasterPageFile="~/List.Master" AutoEventWireup="true"
    CodeBehind="Foundation.aspx.cs" Inherits="SGRapidForm.Foundation.Foundation" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cpHeader" runat="server">
    <script src="foundation.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpBody" runat="server">
    <div class="ui-menu">
        <uc:Menu ID="menu1" runat="server" DataFile="../Views/Foundation/Menu/Foundation.xml"
            PageCode="Foundation" />
    </div>
    <div class="ui-wrapper">
        <div class="ui-hidden">
            <dx:ASPxLabel ID="lblKeyid" ClientInstanceName="lblKeyid" runat="server" />
            <dx:ASPxLabel ID="lblFoundationClassName" ClientInstanceName="lblFoundationClassName"
                runat="server" />
        </div>
        <div id="listall" class="ui-content-item ui-content-item-selected">
            <table>
                <tr>
                    <td style="vertical-align: top; width: 127px">
                        <dx:ASPxTreeList ID="tlFoundationClass" AutoGenerateColumns="False" Width="100%"
                            ClientInstanceName="tlFoundationClass" KeyFieldName="Keyid" runat="server">
                            <Columns>
                                <dx:TreeListDataColumn Caption="基础资料类别" FieldName="FoundationClassName" VisibleIndex="0" />
                            </Columns>
                            <SettingsBehavior AllowFocusedNode="true" />
                            <ClientSideEvents NodeDblClick="doSelectKeyid" />
                        </dx:ASPxTreeList>
                    </td>
                    <td style="width: 10px">
                    </td>
                    <td style="vertical-align: top;">
                        <%--gvwList--%>
                        <dx:ASPxGridView ID="gvwList" ClientInstanceName="gvwList" runat="server" AutoGenerateColumns="False" DataSourceID="odsList" DataSourceForceStandardPaging="true"
                            Width="590px" KeyFieldName="Keyid" OnCustomCallback="gvwList_CustomCallback">
                            <Columns>
                                <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" Caption="选择"
                                    HeaderStyle-HorizontalAlign="Center">
                                </dx:GridViewCommandColumn>
                                <dx:GridViewDataColumn Caption="基础资料名称" FieldName="FoundationText" VisibleIndex="1">
                                </dx:GridViewDataColumn>
                                <dx:GridViewDataColumn Caption="基础资料类别" FieldName="FoundationClassName" VisibleIndex="2">
                                </dx:GridViewDataColumn>
                                <dx:GridViewDataColumn Caption="排序" FieldName="Order" VisibleIndex="3">
                                </dx:GridViewDataColumn>
                                <dx:GridViewDataCheckColumn FieldName="IsSys" VisibleIndex="4" Caption="是否系统编码" Settings-AllowSort="False"
                                    HeaderStyle-HorizontalAlign="Center">
                                    <PropertiesCheckEdit DisplayTextChecked="true" DisplayTextUnchecked="false" />
                                </dx:GridViewDataCheckColumn>
                                <dx:GridViewDataColumn Caption="备注" FieldName="Remark" VisibleIndex="5">
                                </dx:GridViewDataColumn>
                            </Columns>
                            <ClientSideEvents SelectionChanged="doSelect" RowDblClick="doSelectedItem" />
                            <SettingsBehavior AllowFocusedRow="true"   />
                            <SettingsLoadingPanel Text="加载中..." />
                            <SettingsText EmptyDataRow="没有数据显示" />
                        </dx:ASPxGridView>
                         <%--数据源控件--%>
                        <asp:ObjectDataSource ID="odsList" runat="server" SortParameterName="sortColumns"
                            EnablePaging="true" StartRowIndexParameterName="startRecord" MaximumRowsParameterName="maxRecords"
                            SelectCountMethod="PagingGetCount" SelectMethod="PagingGetFoundation" TypeName="SGRapidForm.Foundation.FoundationManage">
                            <SelectParameters>
                                <asp:ControlParameter Name="filterConditions" Type="String" ControlID="hfFilterCondition"
                                    PropertyName="Value" ConvertEmptyStringToNull="false" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
                        <%--存储过滤条件--%>
                        <asp:HiddenField ID="hfFilterCondition" ClientIDMode="Static" runat="server" Value="1=2" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="search" class="ui-content-item">
            <ul class="ui-list">
                <li>
                    <dx:ASPxLabel ID="lblEmail" runat="server" Text="基础资料名称：" AssociatedControlID="txtFoundationText" />
                </li>
                <li>
                    <dx:ASPxTextBox ID="txtFoundationText" ClientInstanceName="txtFoundationText" runat="server"
                        Width="120px">
                    </dx:ASPxTextBox>
                </li>
                <li>
                    <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="基础资料类别：" AssociatedControlID="txtFoundationClassKeyid" />
                </li>
                <li>
                    <dx:ASPxTextBox ID="txtFoundationClassKeyid" ClientInstanceName="txtFoundationClassKeyid"
                        runat="server" Width="120px">
                    </dx:ASPxTextBox>
                </li>
            </ul>
            <ul class="ui-list">
                <li>
                    <dx:ASPxLabel ID="lblEmail2" runat="server" Text="是否系统编码：" />
                </li>
                <li>
                    <dx:ASPxRadioButtonList ID="rblIsSys" ClientInstanceName="rblIsSys" runat="server"
                        RepeatDirection="Horizontal" RepeatLayout="Table" Width="120">
                        <Items>
                            <dx:ListEditItem Text="是" Value="true" />
                            <dx:ListEditItem Text="否" Value="false" />
                        </Items>
                        <Paddings Padding="0" />
                    </dx:ASPxRadioButtonList>
                </li>
            </ul>
            <ul class="sl-floatcenter clearfix">
                <li class="sl-floatcenter-item">
                    <dx:ASPxButton ID="btnSubmit" ClientInstanceName="btnSubmit" runat="server" Text="查 询"
                        AutoPostBack="false">
                        <ClientSideEvents Click="doSubmittedToSearch" />
                    </dx:ASPxButton>
                </li>
                <li class="sl-floatcenter-item">
                    <dx:ASPxButton ID="btnReset" ClientInstanceName="btnReset" runat="server" Text="重 置"
                        AutoPostBack="false">
                        <ClientSideEvents Click="doResetToSearch" />
                    </dx:ASPxButton>
                </li>
            </ul>
        </div>
    </div>
</asp:Content>
